-- GENERATED SPELL FOR [Serpentshrine Lurker] --


function spell0_21863(pUnit, Event) --@Poison Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(38655,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21863', 8000, 1)
end

function spell1_21863(pUnit, Event) --@Rancid Mushroom,Self--
pUnit:FullCastSpellOnTarget(38650,pUnit)
pUnit:RegisterEvent('Sorts_21863', 622, 1)
end

function Sorts_21863(pUnit, Event)
local choix_sorts_21863 = math.random(0, 1)
if choix_sorts_21863 == 0 then
pUnit:RegisterEvent('spell0_21863', 1, 1)
end
if choix_sorts_21863 == 1 then
pUnit:RegisterEvent('spell1_21863', 1, 1)
end
end

function mob21863_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21863', math.random(1500, 3000), 1)
end

function mob21863_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21863_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21863_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21863, 1, 'mob21863_Action')
RegisterUnitEvent(21863, 2, 'mob21863_Leave')
RegisterUnitEvent(21863, 3, 'mob21863_Kill')
RegisterUnitEvent(21863, 4, 'mob21863_Die')
